package com.pan.download5.factory.impl;

import com.pan.crawler.Page;
import com.pan.crawler.auto.AutoCrawlerPage;
import com.pan.download5.parse.AutoXmlParser;
import com.pan.download5.factory.PageFactory;
import com.pan.download5.parse.entity.auto.impl.AutoPage;

public class AutoCrawlerPageFactory implements PageFactory {

    private AutoPage pageInfo;

    public AutoCrawlerPageFactory(AutoPage pageInfo) {
        this.pageInfo = pageInfo;
    }

    @Override
    public Page createPage() {
        AutoCrawlerPage autoCrawlerPage = new AutoCrawlerPage(pageInfo);
        return autoCrawlerPage;
    }
}
